package com.shop.cereshop.commons.domain.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@TableName("cere_shop_sku")
@ApiModel(value = "CereShopSku", description = "店铺规格库")
public class CereShopSku {

    private static final long serialVersionUID = 1L;

    /**
     * 店铺规格id
     */
    @ApiModelProperty(value = "店铺规格id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    @NotNull(message = "店铺id")
    private Long shopId;

    /**
     * 规格名
     */
    @ApiModelProperty(value = "规格名")
    @NotNull(message = "规格名")
    private String skuName;



}
